import Model from '@/utils/http.js'
const api = new Model()

// 获取积分钱包首页配置信息
export function pointsWalletHomePageConfig() {
	return api.get({
		url: '/points/wallet/home/page/config'
	})
}
// 获取聚推客配置信息
export function jtkHomePageConfig() {
	return api.get({
		url: '/shenye/jtk/home/page/config'
	})
}
// 获取用户 积分信息 (CoCo+椰分)
export function mineGetIntegral() {
	return api.get({
		url: '/mine/center/getIntegral'
	})
}
// 神椰聚推客身份ID
export function jtkOrdersPubid() {
	return api.get({
		url: '/shenye/jtk/orders/pubid'
	})
}
// 店铺积分列表
export function douyinMyAnchorList (data) {
	return api.get({
		url: '/douyin/anchor/index/v1/my/anchors',
		data
	})
}
// 订单兑换积分
export function changeOrder2(data){
	return api.post({
		url: '/anchor/change/order/v1/change/all/order',
		data
	})
}
// 查询兑换记录
export function getChangeOrderList (data) {
	return api.get({
		url: '/anchor/change/order/v1/list',
		data
	})
}
// 会员积分流水
export function anchorMemberIntegralLog (data) {
	return api.get({
		url: '/anchor/member/integral/log',
		data
	})
}
// 会员可用积分数量
export function anchorMemberIntegralUsable (data) {
	return api.get({
		url: '/anchor/member/integral/usable',
		data
	})
}


// 主播商品订单 详情
export function getAnchorGoodsOrderDetail (id) {
	return api.get({
		url: `/anchor/goods/order/v1/detail/${id}`,
	})
}
// 确认收货
export function confirmOrder (data) {
	return api.put({
		url: '/anchor/goods/order/v1/confirm',
		data
	})
}


